﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.BaseInformation;
using TyMES.Model;

namespace TyMES.ViewModel.BaseInformation.WorkshopVMs
{
    public partial class WorkshopTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._Workshop._WorkshopCode")]
        public ExcelPropety WorkshopCode_Excel = ExcelPropety.CreateProperty<Workshop>(x => x.WorkshopCode);
        [Display(Name = "_Model._Workshop._WorkshopName")]
        public ExcelPropety WorkshopName_Excel = ExcelPropety.CreateProperty<Workshop>(x => x.WorkshopName);
        [Display(Name = "_Model._Workshop._FactoryCode")]
        public ExcelPropety FactoryCode_Excel = ExcelPropety.CreateProperty<Workshop>(x => x.FactoryCode);
        [Display(Name = "_Model._Workshop._ResponsibleId")]
        public ExcelPropety ResponsibleId_Excel = ExcelPropety.CreateProperty<Workshop>(x => x.ResponsibleId);
        [Display(Name = "_Model._Workshop._Status")]
        public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<Workshop>(x => x.Status);
        [Display(Name = "_Model._Workshop._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<Workshop>(x => x.CreateTime, true);
        [Display(Name = "_Model._Workshop._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<Workshop>(x => x.UpdateTime, true);
        [Display(Name = "_Model._Workshop._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<Workshop>(x => x.CreateBy);
        [Display(Name = "_Model._Workshop._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<Workshop>(x => x.UpdateBy);
        [Display(Name = "_Model._Workshop._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<Workshop>(x => x.IsValid);

	    protected override void InitVM()
        {
            

        }

    }

    public class WorkshopImportVM : BaseImportVM<WorkshopTemplateVM, Workshop>
    {
            //import

    }

}